.class Llt/farmis/libraries/externalgps/nmea/NmeaParser$VTG;
.super Ljava/lang/Object;
.source "NmeaParser.java"

# interfaces
.implements Llt/farmis/libraries/externalgps/nmea/NmeaParser$SentenceParser;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Llt/farmis/libraries/externalgps/nmea/NmeaParser;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "VTG"
.end annotation


# instance fields
.field final synthetic this$0:Llt/farmis/libraries/externalgps/nmea/NmeaParser;


# direct methods
.method constructor <init>(Llt/farmis/libraries/externalgps/nmea/NmeaParser;)V
    .locals 0

    .line 90
    iput-object p1, p0, Llt/farmis/libraries/externalgps/nmea/NmeaParser$VTG;->this$0:Llt/farmis/libraries/externalgps/nmea/NmeaParser;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public parse([Ljava/lang/String;Llt/farmis/libraries/externalgps/GPSLocation;)Z
    .locals 3

    const/4 v0, 0x3

    .line 93
    :try_start_0
    aget-object v0, p1, v0

    invoke-static {v0}, Llt/farmis/libraries/externalgps/nmea/NmeaParser;->parseFloat(Ljava/lang/String;)F

    move-result v0

    iput v0, p2, Llt/farmis/libraries/externalgps/GPSLocation;->dir:F

    const/4 v0, 0x5

    .line 94
    aget-object v1, p1, v0

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    const/4 p1, 0x0

    goto :goto_0

    :cond_0
    aget-object p1, p1, v0

    invoke-static {p1}, Llt/farmis/libraries/externalgps/nmea/NmeaParser;->parseFloat(Ljava/lang/String;)F

    move-result p1

    :goto_0
    iput p1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->velocity:F

    const-string p1, "VTG"

    .line 95
    iput-object p1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->messageType:Ljava/lang/String;

    .line 97
    iget p1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->velocity:F

    cmpl-float p1, p1, v2

    if-lez p1, :cond_1

    .line 98
    iget p1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->velocity:F

    const v0, 0x3f03b29a

    mul-float p1, p1, v0

    iput p1, p2, Llt/farmis/libraries/externalgps/GPSLocation;->velocity:F
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 101
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_1
    :goto_1
    const/4 p1, 0x1

    return p1
.end method
